package model;

public class Grade {
    private String studentNo;
    private String courseNo;
    private double usualScore;
    private double finalScore;
    private double totalScore;

    public Grade(String studentNo, String courseNo, double usualScore, double finalScore) {
        this.studentNo = studentNo;
        this.courseNo = courseNo;
        this.usualScore = usualScore;
        this.finalScore = finalScore;
        this.totalScore = usualScore * 0.4 + finalScore * 0.6;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public String getCourseNo() {
        return courseNo;
    }

    public double getUsualScore() {
        return usualScore;
    }

    public double getFinalScore() {
        return finalScore;
    }

    public double getTotalScore() {
        return totalScore;
    }
}
